<div class="box box-primary">
    <?php echo form_open('', 'role="form"'); ?>
    <div class="box-body">
        <div class="form-group">
            <label for="user_name">用户名</label>
            <input type="text" class="form-control" id="user_name" name="user_name" placeholder="用户名"
                   value="<?php echo set_value('user_name', ($user ? $user->user_name : '')); ?>">
        </div>
        <div class="form-group">
            <label for="user_email">电子邮箱</label>
            <input type="email" name="user_email" class="form-control" id="user_email" placeholder="电子邮箱"
                   value="<?php echo set_value('user_email', ($user ? $user->user_email : '')); ?>">
        </div>
        <div class="form-group">
            <label for="user_password">密码 (<?php echo(!$user ? '自动生成请留空' : '留空为不修改密码'); ?>)</label>
            <input type="password" class="form-control" id="user_password" name="user_password" placeholder="密码"
                   value="<?php echo set_value('user_password'); ?>">
        </div>
        <div class="form-group">
            <label for="user_type_seq_id">用户类型</label>
            <?php echo form_dropdown('user_type_seq_id', array('' => '选择') + $user_types, ($user ? $user->user_type_seq_id : array()), 'class="form-control" id="user_type_seq_id"'); ?>
        </div>
        <div class="form-group">
            <label for="user_emailConfirm">
                <input name="user_emailConfirm"
                       id="user_emailConfirm" <?php echo set_checkbox('user_emailConfirm', 'confirm', ($user && $user->user_emailConfirm ? TRUE : FALSE)) ?>
                       value="confirm"
                       type="checkbox" class="flat-red"> 邮箱已激活?
            </label>
        </div>

        <div class="form-group">
            <label for="user_status_seq_id">用户状态</label>
            <?php echo form_dropdown('user_status_seq_id', array('' => '选择') + $status, ($user ? $user->user_status_seq_id : array()), 'class="form-control" id="user_status_seq_id"'); ?>
        </div>

    </div>

    <div class="box-footer">
        <button type="submit" class="btn btn-primary">提交</button>
    </div>
    <?php echo form_close(); ?>
</div>

